package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojo.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    /**
     * 批量保存文章和素材关联关系
     *
     * @param newsId
     * @param materialIds
     * @param type
     */
    void saveNewsMaterialRelation(@Param("newsId") Long newsId, @Param("materialIds") List<Long> materialIds, @Param("type") Integer type);
}

